<?php
namespace app\mxty\model;

use think\model\Pivot;

class CourseCoach extends Pivot
{
    protected $table = 'athlon_course_coach';
    protected $pk = 'id';

    public static function selectCourses($coachIds)
    {
      return self::where('employee_id', 'in', $coachIds)->select();
    }
}